import request from '@/utils/request'

// 查询培训计划列表
export function listPlan(query) {
  return request({
    url: '/admintrain/plan/list',
    method: 'get',
    params: query
  })
}

// 查询培训计划详细
export function getPlan(id) {
  return request({
    url: '/admintrain/plan/' + id,
    method: 'get'
  })
}

// 修改培训计划
export function updatePlan(data) {
  return request({
    url: '/admintrain/plan',
    method: 'put',
    data: data
  })
}


// 审核培训计划
export function submitAudit(trainId, status) {

  return request({
    url: '/admintrain/plan/audit/' + trainId + "/" + status,
    method: 'get',
  })
}


